﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FusionDotNet
{
    /// <summary>
    /// Represents the result of a <see cref="ListTablesCommand"/>
    /// </summary>
    public class ListTablesResult : CommandResult
    {
        /// <summary>
        /// Contains the list of tables and their ID's return by the <see cref="ListTablesCommand"/>
        /// </summary>
        public Dictionary<int, string> Tables { get; private set; }

        /// <summary>
        /// Construct a ListTableResults object.
        /// </summary>
        public ListTablesResult()
        {
            Tables = new Dictionary<int, string>();
        }

        internal void AddTable(int tableId, string tableName)
        {
            Tables.Add(tableId, tableName);
        }
    }
}
